From e56bbfb51f04c351108c89078c627937ebca7bef Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Sun, 13 Oct 2024 17:33:23 +0100 Subject: Refactors About and Contact pages --- src/pages/[locale]/index.astro | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'src/pages/[locale]/index.astro') diff --git a/src/pages/[locale]/index.astro b/src/pages/[locale]/index.astro index 9f994a2..796bf59 100644 --- a/src/pages/[locale]/index.astro +++ b/src/pages/[locale]/index.astro @@ -4,9 +4,6 @@ import localeStaticPaths from '$lib/localeStaticPaths'; import translate from '$i18n/translate'; import tPage from '$i18n/translations/pages/home'; import type Locale from '$types/Locale'; -import { getMostRecentNewsItem } from '$lib/newsUtils'; -import contactDetails from '$data/contactDetails'; -import NewsIndex from '$components/NewsIndex/NewsIndex.astro'; import Button from '$components/Button.astro'; import CommitteeList from '$components/CommitteeList/CommitteeList.astro'; @@ -16,33 +13,9 @@ export async function getStaticPaths() { const locale = Astro.params.locale as Locale; const t = translate(locale); -const mostRecentNewsItem = await getMostRecentNewsItem(locale); --- - -
-

- - { - mostRecentNewsItem && ( - - ) - } -

-

@@ -59,12 +32,4 @@ const mostRecentNewsItem = await getMostRecentNewsItem(locale); {t(tPage, { key: 'aw-furthsettins' })} ▶

- -
-

- - {contactDetails.generalEnquiries.emailAddress} - -
')} /> -

-- cgit v1.2.3